package com.lxd.milktea.dao;

import com.lxd.milktea.dataobject.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @ProjectName: milktea
 * @Package: com.lxd.milktea.dao
 * @ClassName: UserRepository
 * @Author: carrymaniac
 * @Description:
 * @Date: 2020/5/3 10:27 上午
 * @Version:
 */
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
        User findByUserNameAndPassword(String username,String password);
        User findByUserName(String username);
}
